﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="RestaurentManager.aspx.cs" Inherits="RestaurentReviewWeb.Admin.RestaurentManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="divContent" runat="server">
<p><asp:Button runat="server" ID="btnAdd" Text="Add new restaurant" OnClick="AddNewRestaurant"/></p>
<asp:GridView ID="gridRestaurant" OnRowEditing="EditRestaurent" runat="server" DataKeyNames="Id" 
        AutoGenerateColumns="False">
    <Columns>
        <asp:BoundField DataField="Name" HeaderText="Restaurent Name" />
        <asp:BoundField DataField="Description" HeaderText="Description" />
        <asp:BoundField DataField="Rating" HeaderText="Rating" />
        <asp:CommandField ButtonType="Button" HeaderText="Edit"  ShowEditButton="True" 
            ShowHeader="True" />
    </Columns>
</asp:GridView>

</div>
</asp:Content>
